﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Public.SAnswers" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<%if (userInfo.MemberNo == "")
                {%>
				<div style="padding:50px; text-align:center">
					<div class="Black22B"><%=GetText("PB002")%></div>
				</div>
				<%}
				else
				{ %>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%if(userInfo.Online){%><img src='/Images/online.gif' title= '<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%}else{ %><img src='/Images/offline.gif' title='<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%} %>&nbsp;<%=userInfo.Nickname%></h1>
							</div>
							<div class="profile_basicinfo" style="position:relative">
								<div class="basicinfo_av">
									<div><a href="#"><img src='<%=(userInfo.Avatar==""?"/Images/no_pic.gif":userInfo.Avatar)%>' width="150" height="150" border="0" /></a></div>
									<div style='display: <%=(userInfo.MemberNo==Page.User.Identity.Name)?"":"none"%>'><span class="edit_text">[ <img src="/Images/icon_common_edit.gif" align="absmiddle" /> <a href="/my/profile/myphoto.htm"><%=GetText("C0053")%></a> ]</span></div>
								</div>
								<div class="basicinfo_lan">
									<p><span class="black18"><%=GetText("C0004")%>: </span><a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%></a><em>(<%=GetText("C0023") %>)</em><% if(userInfo.MotherTongue2.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue2)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue2Level)%></em><%}%><% if(userInfo.MotherTongue3.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue3)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue3Level)%></em><%}%><% if(userInfo.MotherTongue4.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue4)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue4Level)%></em><%} %>						</p>
									<p><span class="black18"><%=GetText("C0006")%>: </span><%if (userInfo.TargetLanguage.Trim() != ""){ %><a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguageLevel)%><%} %><% if(userInfo.TargetLanguage2.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage2)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage2Level)%><%}%><% if(userInfo.TargetLanguage3.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage3)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage3Level)%><%}%><% if(userInfo.TargetLanguage4.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage4)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage4Level)%><%} %></p>
									<p class="grey11"><%=userInfo.IsShowBod && userInfo.Age!=""? userInfo.Age + ", " : ""%><%=userInfo.Gender!=""?GetGenderText(userInfo.Gender)+", ":""%><%=GetText("C0102",new string[]{(userInfo.Hometown.Trim()+" ")+(GetCountryText(userInfo.Nationality))})%><%if (userInfo.Country != ""){ %>, living in <% if (userInfo.City.Trim() != ""){%><%=(userInfo.City.Trim() + " ")%><%}%><%=GetCountryText(userInfo.Country)%><%} %></p>
									<div><%=userInfo.Avatar_title == "" ? "" : "<div class='thoughtbox'><div><div><div><div>" + userInfo.Avatar_title + "</div></div></div></div></div>"%></div>
								</div>
								<div class="clear"></div>
							</div>
							<%if(mymemberno!=userInfo.MemberNo) {%>
							<div class="submenuN_button" style="right:0px; top:30px">
								<div class="mbasicinfo_op">
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_add.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
											<%if (UserRelation==0){%><a href="#" id="KKK" title="<%=GetText("C0078")%>" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"$AddFriends$('"+userInfo.MemberNo+"','KKK')\"":"onclick=\"NotAffirm()\""%> ><%=GetText("C0078")%></a><%}else{ %><span id="addToFriends" style="color:#ccc" title='<%=GetText("PB005",new string[]{userInfo.Nickname})%>'><%=GetText("C0078")%></span><%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_common_mailbox.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno==""){ %><a href="#" title="<%=GetText("C0079")%>" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0079")%></a><%}else if ((userInfo.WhoMsg == "0" || userInfo.WhoMsg == "1" || (userInfo.WhoMsg == "2" && UserRelation == 1)) && mymemberno!=userInfo.MemberNo){%><a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"$Getmail$('"+userInfo.MemberNo+"')\"":"onclick=\"NotAffirm()\""%>  title="<%=GetText("C0079")%>"><%=GetText("C0079")%></a><%}else{ %><span id="Span3" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0079")%></span>
										<%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_chat.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno==""){ %><a href="#" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0080")%></a><%}else if ((userInfo.WhoChatMe == "0" || userInfo.WhoChatMe == "1" || (userInfo.WhoChatMe == "2" && UserRelation == 1)) && mymemberno!=userInfo.MemberNo){%><a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"javascript: up_launchWM( '"+Page.User.Identity.Name.TrimStart('T').TrimStart('0')+"', '"+ userInfo.MemberNo.TrimStart('T').TrimStart('0')+"' ); return false;\"":"onclick=\"NotAffirm()\""%> ><%=GetText("C0080")%></a><%}else{ %><span id="Span1" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0080")%></span>
										<%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_report.gif" alt="Flag it" align="absmiddle" /></div>
										<div class="floatl Black12UU"><a href="#" title="<%=GetText("PB010")%>" onclick="$Feedback$()"><%=GetText("PB010")%></a></div>
										<div class="clear"></div>
									</div>
								</div>						
							</div>
							<%} %>
						</div>
					</div>
				</div>
				<div>
					<ul id="qa_nav" class="sort_sel">
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>.htm">Profile</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/details.htm">Details</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/activity.htm">Activity</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/blackboard.htm">Blackboard</a></span></li>
					</ul>
					<div class="clear"></div>							
					<!--latest-->
				</div>				
				<div class="Center9001" style="background:url(/Images/bg_tab_line.gif) repeat-x top left">
					<div class="Center9001Left">	
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=userInfo.Nickname %>’s participation</h4>								
								<a href="<%=WWWHost %>/<%=userInfo.MemberNo %>/questions.htm"><%=userInfo.Nickname %>'s questions </a>
								<br /><%=userInfo.Nickname %>'s answers								
							</div>
						</div>
					</div>
					<div class="Center9001Right">
						<div class="Center9001content">
							<div class="profile_area">
								<div class="profile_aboutme">
									<h3><%=userInfo.Nickname %>’s Answers </h3><span dir="ltr">(<%=RecordCount%> answers)</span>
									<asp:Repeater ID="rptQA" runat="server">
									<ItemTemplate>
									    <div>
									        <img src="<%#QStatusImage(Eval("Status").ToString())%>" /> <a href="<%#WWWHost %>/answers/question/<%#Eval("QuestionID") %>.htm"><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("Question").ToString())%></a>
									    </div>
									    <div class="clear"></div>
									</ItemTemplate>
									</asp:Repeater>
									<div id="divPage">
								    <%=CreatePageNav(RecordCount, PageSize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/{1}/answers.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,userInfo.MemberNo,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/{1}/answers.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,userInfo.MemberNo,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;",PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/{1}/answers.htm?p=$I$'>$I$</a></span>&nbsp;", WWWHost,userInfo.MemberNo))%>									
							        </div>									
								</div>											
							</div>
							<!--BLACKBOARD-->
						</div>
			  		</div>
					<div class="clear"></div>
		  		</div>
				<%} %>
	  		</div>
			<div id="body_right"></div>
			<div class="clear"></div>
  		</div>
		<div id="body_900F"></div>
    </div>
</div>